<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLauncherConfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('launcher_config', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('server_id')->comment('服务器id');
            $table->string('patchlist')->default('')->comment('补丁路径');
            $table->string('patchtodel')->default('')->comment('删除路径');
            $table->string('news')->default('')->comment('新闻');
            $table->string('links')->default('')->comment('链接');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('launcher_config');
    }
}
